package com.ruoyi.review.domain;

import com.ruoyi.manipulatorServer.domain.Manipulator;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评价对象 review
 * 
 * @author ruoyi
 * @date 2025-05-24
 */
public class Review extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户 id */
    private Long userId;

    /** 飞手 id */
    private Long manipulatorId;

    public Manipulator getManipulator() {
        return manipulator;
    }

    public void setManipulator(Manipulator manipulator) {
        this.manipulator = manipulator;
    }

    private Manipulator manipulator;
    private String  reviewContent;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    private String nickName;
    public String getReviewContent() {
        return reviewContent;
    }

    public void setReviewContent(String reviewContent) {
        this.reviewContent = reviewContent;
    }

    /** 评价星级（1 - 5 星） */
    @Excel(name = "评价星级", readConverterExp = "1=,-=,5=,星=")
    private Long starRating;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setManipulatorId(Long manipulatorId) 
    {
        this.manipulatorId = manipulatorId;
    }

    public Long getManipulatorId() 
    {
        return manipulatorId;
    }

    public void setStarRating(Long starRating) 
    {
        this.starRating = starRating;
    }

    public Long getStarRating() 
    {
        return starRating;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("manipulatorId", getManipulatorId())
            .append("starRating", getStarRating())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime()).append("manipulator",  getManipulator()).append("reviewContent", getReviewContent()).append("nickName", getNickName())
            .toString();
    }
}
